package com.redstar.HappyRefresh.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode
public class Captcha implements Serializable { // 校验图片验证码并通过qq邮箱发送验证码
    @NotBlank(message = "uuid为空")
    private String uuid; // uuid

    @NotBlank(message = "code为空")
    private String code; // 验证码

    @TableField(exist = false)
    @Email
    private String email; // 邮箱
}
